package JAVASE512;

import java.util.Scanner;

public class JAVAtiger {
    public static void main(String[] argc) {
        Scanner sc = new Scanner(System.in);
        //1.键盘录入两个老虎的体重
        System.out.println("请输入两只老虎体重：");
        int tiger1 = sc.nextInt();
        int tiger2 = sc.nextInt();
        //2.比较两个老虎的体重，将重的赋值给max
        int max = tiger1 > tiger2 ? tiger1 : tiger2;
        System.out.println(max);
    }
}
